#pragma once

#include "BaseModel.h"

namespace wlog {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace TL_Tools;
	using namespace TL_Libs;

	public ref class Alert : public BaseModel
	{
	public:
		Alert(void){
			this->id_user = Configure::USER_ID;
			this->desc = "";
			this->alert_time = "";
			this->date_add = "";
			this->count = "3";
			this->active = "1";
		};

		Alert(int num) : BaseModel(num){}

		virtual Hashtable^ GetFields(void) override;
		ArrayList^ GetAll(void);
		Hashtable^ GetAlert(void);

	public:
		String^ id_user;
		String^ desc;
		String^ alert_time;
		String^ date_add;
		String^ count;
		String^ active;

		static String^ TFORMAT = "yyyy-MM-dd HH:mm:ss";
	};

}
